<form action="javascript:void(0)" method="POST" id="main-goods">
	<div id="group">
		<div id="check-text"><span>全选</span></div>
		<?php if($list['opt'] == 'enable'){ ?>
		<div id="check-del">删除</div>
		<?php }else if ($list['opt'] == 'disable'){ ?>
		<div id="check-recover">回收</div>
		<?php }else{ ?>
		<div id="check-del">删除</div>
		<div id="check-recover">回收</div>
		<?php } ?>
		<div id="search">
			<input type="text" name="search-text" value="<?php echo $search_text; ?>" /><a href="javascript:void(0)" target="_self">搜索</a>
		</div>
		<?php if(isset($page['display'])) { ?>
		<div id="page">
			<div id="process"><?php echo $page['total_rows'] ?> 中的 <?php echo $page['start'] . '-' . $page['end'] ?></div>
			<?php echo $page['display']; ?>
		</div>
		<?php } ?>
	</div>
	<div id="list">
		<?php if ($search_type == 'main_goods'){ ?>
			<?php foreach ($search as $g) { ?>
			<div class="search-goods main-goods each del-flg-<?php echo $g->del_flg ?>">
				<div class="check"><input type="checkbox" class="main-goods-id" name="main_goods_id[]" value="<?php echo $g->main_goods_id; ?>" /></div>
				<div class="number"><?php echo $g->number; ?></div>
				<div class="btn"><a href="<?php echo $site['root'] . 'goods/update/main/' . $g->main_goods_id ?>" class="edit"></a><?php if($g->del_flg == 0){ ?><a href="javascript:void(0)" class="del"></a><?php }else{ ?><a href="javascript:void(0)" class="recover"></a><?php } ?><a href="<?php echo $site['root'] . 'goods/createSub/' . $g->main_goods_id ?>" class="add"></a></div>
				<div class="name"><?php echo $g->name; ?></div>
				<div class="search-code"><?php echo $g->search_code; ?></div>
				<div class="update-date"><?php echo date("Y-m-d", $g->update_date); ?></div>
			</div>
			<?php } ?>
		<?php }else if($search_type == 'sub_goods'){ ?>
			<?php foreach ($search as $g) { ?>
			<div class="search-goods each-sub-goods each del-flg-<?php echo $g->del_flg ?>">
				<div class="check"><input type="checkbox" class="sub-goods-id" name="sub_goods_id[]" value="<?php echo $g->sub_goods_id; ?>" /></div>
				<div class="sub-goods-number"><?php echo $g->number; ?></div>
				<div class="btn"><a href="<?php echo $site['root'] . 'goods/update/sub/' . $g->sub_goods_id ?>" class="edit"></a><?php if($g->del_flg == 0){ ?><a href="javascript:void(0)" class="del"></a><?php }else{ ?><a href="javascript:void(0)" class="recover"></a><?php } ?></div>
				<div class="sub-goods-attr"><?php echo $g->attribute; ?></div>
				<div class="sub-goods-stock"><?php echo $g->stock; ?>件</div>
				<div class="sub-goods-code">ss:<?php echo $g->search_code; ?></div>
				<div class="sub-goods-update"><?php echo date("Y-m-d", $g->update_date); ?></div>
			</div>
			<?php } ?>
		<?php } ?>
	</div>
</form>